#include<iostream>
using namespace std;
class Building
{
private:
    string m_Bedroom;
public:
    string m_SittingRoom;
    Building()
    {
        m_SittingRoom="sittingroom";
        m_Bedroom="bedroom";
    }
    friend void laowang(Building *Building);
};
void laowang(Building *building)
{
    cout<<"someone accessing "<<building->m_SittingRoom<<endl;
    cout<<"someone accessing "<<building->m_Bedroom<<endl;
}

int main()
{
    Building building;
    laowang(&building);
}